var xiaoluoliLoop = 0;
var xiaoluoliInterval = setInterval(function () {
    if (xiaoluoliLoop++ > 100) clearInterval(xiaoluoliInterval);
    var ssl = window.origin.indexOf("https") >= 0;
    if (typeof (L2Dwidget) != 'undefined') {
        L2Dwidget.init({
            "model": {
                //jsonpath控制显示那个小萝莉模型，下面这个就是我觉得最可爱的小萝莉模型，替换时后面名字也要替换掉
                //jsonPath: "https://unpkg.com/live2d-widget-model-hibiki@1.0.5/assets/hibiki.model.json",
                //jsonPath : "https://cdn.jsdelivr.net/gh/github923665892/awesCnb-live2dModels@1.7/live2d-widget-model-haru/01/assets/haru01.model.json",
                /**jsonPath : ssl?
                 "https://zhulb.gugechajian.com/js/xiaoluoli/awesCnb-live2dModels-master/live2d-widget-model-haru/02/assets/haru02.model.json"
                 :    "http://zhulb.gugechajian.com/js/xiaoluoli/awesCnb-live2dModels-master/live2d-widget-model-haru/02/assets/haru02.model.json",**/
                //jsonPath : "http://zhulb.gugechajian.com:8089/xiaoluoli/awesCnb-live2dModels-master/live2d-widget-model-haru/02/assets/haru02.model.json",
                //jsonPath : "localhost:8050/js/override/haru01.model.json",
                //jsonPath :"https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json",
                //jsonPath : "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
                //jsonPath : "https://unpkg.com/live2d-widget-model-miku@1.0.5/assets/miku.model.json",
                //jsonPath : "https://unpkg.com/live2d-widget-model-shizuku@1.0.5/assets/shizuku.model.json",
                jsonPath: window.kbnRootPath + ("lib/live2D/haru01.model.json"),
                "scale": 1
            },
            "display": {
                "position": "right", //看板娘的表现位置
                "width": 230,  //小萝莉的宽度
                "height": 290, //小萝莉的高度
                "hOffset": 20,
                "vOffset": -20
            },
            "mobile": {
                "show": true,
                "scale": 0.5
            },
            "react": {
                "opacityDefault": 0.7,
                "opacityOnHover": 0.2
            }
        });
        clearInterval(xiaoluoliInterval);

        /**L2Dwidget.init({
			"model": {
				//jsonpath控制显示那个小萝莉模型，下面这个就是我觉得最可爱的小萝莉模型，替换时后面名字也要替换掉
				jsonPath: "https://unpkg.com/live2d-widget-model-hibiki@1.0.5/assets/hibiki.model.json",
				//jsonPath :"https://unpkg.com/live2d-widget-model-koharu@1.0.5/assets/koharu.model.json",
				"scale": 1
			},
			"display": {
				"position": "left", //看板娘的表现位置
				"width": 70,  //小萝莉的宽度
				"height": 150, //小萝莉的高度
				"hOffset": 180,
				"vOffset": -20
			},
			"mobile": {
				"show": true,
				"scale": 0.5
			},
			"react": {
				"opacityDefault": 0.7,
				"opacityOnHover": 0.2
			}
		});**/
    }
}, 1000);